package com.landiao.mapper;

import java.math.BigDecimal;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.landiao.entities.Vip;

public interface VipMapper extends BaseMapper<Vip,String>{
    int deleteByPrimaryKey(String vipId);

    int insert(Vip record);

    int insertSelective(Vip record);

    Vip selectByPrimaryKey(String vipId);

    int updateByPrimaryKeySelective(Vip record);

    int updateByPrimaryKey(Vip record);

	Vip getByVipNo(String vipNo);
	
	Vip getByPhoneNo(String phoneNo);
	
	Vip getByOperId(String operId);
	
	void updateBalance(@Param("vipId")String vipId,@Param("balance")BigDecimal balance);

	/**
	 * 获取当天生日的会员
	 * @return
	 */
	List<Vip> getByBirthday();
	
	Vip getByIdWithDict(String vipId);
}